<template>
  <div class="nickname">
    <div class="header" @click="myinfo">
      <van-icon class="left" name="arrow-left" />
      <span>更改名字</span>
      <button>保存</button>
    </div>
    <div>
      <input type="text" />
    </div>
    <div>
      好名字可以让你的朋友更容易记住你
    </div>
  </div>
</template>

<script>
  export default {
    methods: {
      myinfo() {
        this.$router.push("/myinfo")
      },
    },
  }
</script>

<style lang="scss" scoped>
  .header {
    height: 9vmin;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 5vmin;
    color: #000;

    button {
      border: none;
      color: gray;
      margin-right: 5px;
    }
  }

  input {
    width: 100%;
    height: 8vmin;
    font-size: 5vmin;
    color: #000;
    outline: none;
    border: none;
    border-bottom: 1px solid rgba(gray, 0.3);
    background-color: #f9f9f9;
  }

  div:last-child {
    color: gray;
    font-size: 14px;
    margin: 10px 0 0 5px;
  }
  
</style>